#!/usr/bin/env python
# coding=utf-8
import requests

# 3.3.2 定制请求头
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) '
                         'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36',
           'Host': 'www.santostang.com'
           }
r = requests.get('http://www.santostang.com', headers=headers)
print('状态码:', r.status_code)
